package com.briup.app02.service;

import java.util.List;


import com.briup.app02.bean.Product;
import com.briup.app02.bean.extend.ProductExtend;
import com.briup.app02.utils.CustomerException;

public interface IProductService {
	
	void saeOrUpdate(Product product) throws CustomerException;
	
	List<Product>query(String name,String status,Long productCategoryId);
	
	void deleteById(long id) throws CustomerException;
	
	//级联查询
	List<ProductExtend>queryCascade(String name,String status,Long productCategoryId);
	
	
	//分页查询
	List<ProductExtend>pageQuery(int page,int pagesize,String name,String status,Long prductCategoryId);
	
	//更新商品状态
	void online(Long id);
	
	void offline(Long id);
	
}
